package com.sticktogether.navigation;

/**
 * Transit contains all inforation about the travelling with the public transport.
 * 
 * Note:
 * Some code parts are commented because they are not needed and thus save computing time. 
 * They are not deleted, in case the information will be needed later.
 * 
 * @author 	David Schattel
 * @since	01.12.2012
 */
public class Transit{

	private Walk walkInfo;
	private String depName 		= "---";
	private String arrName 		= "---";
	private Line line			= null;
	private int num_stops 		= 0;
	private String depTimeText	= "--:--";
	private String arrTimeText	= "--:--";
	//private Location depLocation = null;
	//private Location arrLocation = null;
	//private String headsign 	= "Unknown headsign";
	//private long depTime		= 0;
	//private String depTimeZone	= "Unknown time zone";
	//private long arrTime		= 0;
	//private String arrTimeZone	= "Unknown time zone";

	/**
	 * Transit Constructor
	 * 
	 * @param walkInfo		Walk instance with general information
	 * @param depName		Name of Departure position
	 * @param depLocation	Location (Latitude, Longitude) of Departure
	 * @param arrName		Name of Arrival position
	 * @param arrLocation	Location (Latitude, Longitude) of Arrval
	 * @param line			Line instance of the public transport line
	 * @param num_stops		Number of stops until arrival stop is reached
	 * @param headsign		Headsign of the line the user takes
	 * @param depTime		Time of departure in seconds 
	 * @param depTimeText	Time of departure in seconds as String
	 * @param depTimeZone	TimeZone of departure
	 * @param arrTime		Time of arrival in seconds
	 * @param arrTimeText	Time of arrival in seconds as String
	 * @param arrTimeZone	TimeZone of arrival
	 */
	//public Transit(Walk walkInfo, String depName, Location depLocation, String arrName, Location arrLocation, Line line, int num_stops, String headsign, long depTime, String depTimeText, String depTimeZone, long arrTime, String arrTimeText, String arrTimeZone){
		//this.depLocation = depLocation;
		//this.arrLocation = arrLocation;
		//this.headsign = headsign;
		//this.depTime = depTime;
		//this.depTimeZone = depTimeZone;
		//this.arrTime = arrTime;
		//this.arrTimeZone = arrTimeZone;
	public Transit(Walk walkInfo, String depName, String arrName, Line line, int num_stops, String depTimeText, String arrTimeText){
		this.walkInfo = walkInfo;
		this.depName = depName;
		this.arrName = arrName;
		this.line = line;
		this.num_stops = num_stops;
		this.depTimeText = depTimeText;
		this.arrTimeText = arrTimeText;
	}

	public Walk getWalkInfo() {
		return walkInfo;
	}

	public String getDepName() {
		return depName;
	}
	
	public String getArrName() {
		return arrName;
	}
	
	public Line getLine() {
		if(line == null)
			return new Line(null, null, null, null, null);
		return line;
	}

	public int getNum_stops() {
		return num_stops;
	}
	
	public String getDepTimeText() {
		return depTimeText;
	}	
	
	public String getArrTimeText() {
		return arrTimeText;
	}	
/*
	public Location getDepLocation() {
		return depLocation;
	}

	public Location getArrLocation() {
		return arrLocation;
	}

	public String getHeadsign() {
		return headsign;
	}
	
	public long getDepTime() {
		return depTime;
	}

	public String getDepTimeZone() {
		return depTimeZone;
	}	
	
	public long getArrTime() {
		return arrTime;
	}

	public String getArrTimeZone() {
		return arrTimeZone;
	}*/	
	
	
}
